home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17381 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.widomaker.com!usenet
  2. From: alas@widomaker.com ( )
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Newbie question
  5. Date: 15 Apr 1996 17:18:41 GMT
  6. Organization: Widomaker Communication Services
  7. Message-ID: <4ku0di$pfh@news2.widomaker.com>
  8. References: <4kq1d5$253@ginger.lei.net> <4kq1k1$253@ginger.lei.net>
  9. NNTP-Posting-Host: pm1-22.wmbg.widomaker.com
  10. Mime-Version: 1.0
  11. X-Newsreader: WinVN 0.93.14
  12.  
  13. In article <4kq1k1$253@ginger.lei.net>, sidmvl@pixi.com says...
  14. >
  15. >oops Email address was messed up it is corrected now.  Thanks.
  16. >
  17. >I just started a C++ class in school, and I was writing my first 
  18. project.  I 
  19. >have to include a char, double, int, and a string.  The program compiled 
  20. just 
  21. >fine, but when I run the program I get a fatal error that says I have a 
  22. float 
  23. >overflow.  I know I must be missing something extremely basic, but the 
  24. help 
  25. >files were no help.  The input was digit with two decimal places.  I 
  26. used the 
  27. >following statement to define the precision.
  28. >cout.setf(ios::showpoint);
  29. >cout.precision (4);
  30. >
  31. >Any help would be appreciated.
  32. >
  33. >Everyone was once a Newbie........I think.
  34. If you are using Borland you may have to explicitly link in floating 
  35. point code...try the -ff at the command line
  36.  
  37.